package com.towerdefense;

import org.anddev.andengine.engine.options.EngineOptions.ScreenOrientation;
import org.anddev.andengine.opengl.texture.atlas.bitmap.source.AssetBitmapTextureAtlasSource;
import org.anddev.andengine.opengl.texture.atlas.bitmap.source.IBitmapTextureAtlasSource;
import org.anddev.andengine.ui.activity.BaseSplashActivity;

import android.app.Activity;

public class SplashScreen extends BaseSplashActivity {

	private static final int SPLASH_DURATION = 1;
    private static final float SPLASH_SCALE_FROM = .5f;

    @Override
    protected Class<? extends Activity> getFollowUpActivity() {
            return TowerDefense.class;
    }

    @Override
    protected ScreenOrientation getScreenOrientation() {
            return ScreenOrientation.LANDSCAPE;
    }

    @Override
    protected float getSplashDuration() {
            return SPLASH_DURATION;
    }

    @Override
    protected IBitmapTextureAtlasSource onGetSplashTextureAtlasSource() {
            return new AssetBitmapTextureAtlasSource(this, "gfx/splashscreen.png");
    }
    
    protected float getSplashScaleFrom() {
        
        return SPLASH_SCALE_FROM;
    } 

}
